package com.ly.heart.domain;

import java.util.Date;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 会议室预定信息对象 erp_meeting_room_schedule
 *
 * @author cxl
 * @date 2024-06-13
 */
@TableName ("erp_meeting_room_schedule")
@ApiModel (value = "会议室预定信息", description = "会议室预定信息")
@Data
public class MeetingRoomScheduleEntity {

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 会议室id */
        @ApiModelProperty ("会议室id")
        @TableField ("meeting_room_id")
        @Excel (name = "会议室id")
        private String meetingRoomId;

        /** 日期 */
        @ApiModelProperty ("日期")
        @TableField ("time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
        private Date time;

        /** 开始时段 */
        @ApiModelProperty ("开始时段")
        @TableField ("start_time")
        private String startTime;

        /** 结束时段 */
        @ApiModelProperty ("结束时段")
        @TableField ("end_time")
        private String endTime;

        /** 与会人数 */
        @ApiModelProperty ("与会人数")
        @TableField ("meeting_num")
        @Excel (name = "与会人数")
        private Integer meetingNum;

        /** 用途 */
        @ApiModelProperty ("用途")
        @TableField ("purpose")
        @Excel (name = "用途")
        private String purpose;

        /** 所需设备 */
        @ApiModelProperty ("所需设备")
        @TableField ("require_device")
        @Excel (name = "所需设备")
        private String requireDevice;

        /** 创建人 */
        @ApiModelProperty ("创建人")
        @TableField ("user_id")
        @Excel (name = "创建人")
        private String userId;

        @ApiModelProperty ("创建时间")
        @TableField (value = "create_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date changeTime;

        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;

}
